package com.googlecode.gaal.data.impl;

import java.util.Iterator;
import java.util.TreeMap;

public class TreeMultiset<E extends Comparable<E>> extends AbstractMapMultiset<E> {

    public TreeMultiset() {
        super(new TreeMap<E, Integer>());
    }

    public TreeMultiset(Iterator<E> iterator) {
        this();
        while (iterator.hasNext()) {
            add(iterator.next());
        }
    }

}
